#ifndef KEYBOARD_H
#define KEYBOARD_H

#include <QWidget>
#include <QButtonGroup>
#include <QGridLayout>
#include <QPushButton>

class KeyBoard : public QWidget
{
    Q_OBJECT
public:
    explicit KeyBoard(QWidget *parent = 0);
    ~KeyBoard();

    void initView();
    void initConnects();
    void finalConnects();

signals:
    void keyBoardResult(int);

private slots:
    void onButtonGroup(int);
    
private:
    QButtonGroup m_buttonGrp;
    QGridLayout m_mainLayout;
    QPushButton m_keyButton[9];
};

#endif // KEYBOARD_H
